{$CLEO .cs}

thread 'army_band'
                           
:start
repeat
repeat
wait 0 
until if Player.Defined(0)
until if 0AB0:  54 //4
const 
to_x     = 6@
to_y     = 5@
to_z     = 2@
mult     = 3@
item_off = 4@
count    = 0@
id       = 1@
addres   = 7@
handler  = 8@
item_    = 9@
end
6@ = 2500.0 //cords x                
5@ = -1659.0 //cords y               
2@ = 12.3437 //cords z               

WHILE TRUE 
    WAIT 0
    for count = 1 to 54 step 1                                                                   
        0085: item_off = count                                                                             
        item_off *= 4 
        gosub @get_model
        if 07DE:   not model id exists // versionB 
        jf continue                       
        Model.Load(id)                                                                               
        038B: load_requested_models
        while not model.Available(id)
            wait 0
        end                                                                  
        handler = Actor.Create(gang2, id, to_x, to_y, to_z)                                          
        0446: set_actor handler dismemberment_possible 0                                             
        0588: disable_actor handler validate_position 1                                              
        0AC6: addres = label @memory offset                                                          
        005A: addres += item_off                                                                           
        0A8C: write_memory addres size 4 value handler virtual_protect 0                             
        IF mult >= 10                                                                                
        THEN                                                                                         
            to_x = 2500.0                                                                            
            to_y -= 1.5                                                                              
            mult = 1                                                                                 
        ELSE                                                                                         
            mult += 1                                                                                
            to_x -= 1.2                                                                              
        END                                                                                          
    end                                                                                              
    break                                                  
end



while true
    wait 0
    if 0ab0: 55
    then
        for count = 1 to 54 step 1                                                           
            0085: item_off = count                                                                 
            item_off *= 4                                               
            0AC6: addres = label @memory offset                                                                           
            005A: addres += item_off                                                                                     
            0A8d: handler addres  4  0                                  
            if 056D:   actor handler defined                            
            then                                                        
                actor.RemoveReferences(handler)                         
                actor.DestroyInstantly(handler)                         
            end                                                   
        end      
        goto @start                                                     
    end                                                      
end

:get_model
       if 0@ == 1                                                                                                      
       then 1@ = 63                                                                                                    
       else                                                                                                                        
       end                                                                                                                         
       if 0@ == 2                                                                                                      
       then 1@ = 152                                                                                                   
       else                                                                                                                        
       end                                                                                                                         
       if 0@ == 3                                                                                                      
       then 1@ = 237                                                                                                   
       else                                                                                                                        
       end///--//ED2                                                                                                               
       if 0@ == 4                                                                                                      
       then 1@ = 207                                                                                                   
       else                                                                                                                        
       end///--//EFE                                                                                                               
       if 0@ == 5                                                                                                      
       then 1@ = 238                                                                                                   
       else                                                                                                                        
       end///--//F2A                                                                                                               
       if 0@ == 6                                                                                                      
       then 1@ = 245                                                                                                   
       else                                                                                                                        
       end///--//F56                                                                                                               
       if 0@ == 7                                                                                                      
       then 1@ = 243                                                                                                   
       else                                                                                                                        
       end///--//F821@                                                                                                 
       if 0@ == 8                                                                                                      
       then 1@ = 178                                                                                                   
       else                                                                                                                        
       end///--//FAE                                                                                                               
       if 0@ == 9                                                                                                      
       then 1@ = 87                                                                                                    
       else                                                                                                                        
       end///--//FDA                                                                                                               
       if 0@ == 10                                                                                                     
       then 1@ = 244                                                                                                   
       else                                                                                                                        
       end///--//1005                                                                                                              
       if 0@ == 11                                                                                                     
       then 1@ = 246                                                                                                   
       else                                                                                                                        
       end///--//1031                                                                                                              
       if 0@ == 12                                                                                                     
       then 1@ = 256                                                                                                   
       else                                                                                                                        
       end///--//105D                                                                                                              
       if 0@ == 13                                                                                                     
       then 1@ = 139                                                                                                   
       else                                                                                                                        
       end///--//1088                                                                                                              
       if 0@ == 14                                                                                                     
       then 1@ = 64                                                                                                    
       else                                                                                                                        
       end///--//10B4                                                                                                              
       if 0@ == 15                                                                                                     
       then 1@ = 256                                                                                                   
       else                                                                                                                        
       end///--//10DF                                                                                                              
       if 0@ == 16                                                                                                     
       then 1@ = 75                                                                                                    
       else                                                                                                                        
       end///--//110B                                                                                                              
       if 0@ == 17                                                                                                     
       then 1@ = 257                                                                                                   
       else                                                                                                                        
       end///--//1136                                                                                                              
       if 0@ == 18                                                                                                     
       then 1@ = 85                                                                                                    
       else                                                                                                                        
       end///--//1162                                                                                                              
       if 0@ == 19                                                                                                     
       then 1@ = 148                                                                                                   
       else                                                                                                                        
       end///--//118E1@                                                                                                
       if 0@ == 20                                                                                                     
       then 1@ = 140                                                                                                   
       else                                                                                                                        
       end///--//11BA                                                                                                              
       if 0@ == 21                                                                                                     
       then 1@ = 233                                                                                                   
       else                                                                                                                        
       end///--//11E6                                                                                                              
       if 0@ == 22                                                                                                     
       then 1@ = 226                                                                                                   
       else                                                                                                                        
       end///--//1212                                                                                                              
       if 0@ == 23                                                                                                     
       then 1@ = 224                                                                                                   
       else                                                                                                                        
       end///--//123E                                                                                                              
       if  0@ == 24                                                                                                    
       then 1@ = 219                                                                                                   
       else                                                                                                                        
       end///--//126A                                                                                                              
       if 0@ == 25                                                                                                     
       then 1@ = 216                                                                                                   
       else                                                                                                                        
       end///--//12961@                                                                                                
       if 0@ == 26                                                                                                     
       then 1@ = 157                                                                                                   
       else                                                                                                                        
       end///--//12C2                                                                                                              
       if 0@ == 27                                                                                                     
       then 1@ = 131                                                                                                   
       else                                                                                                                        
       end///--//12ED                                                                                                              
       if 0@ == 28                                                                                                     
       then 1@ = 93                                                                                                    
       else                                                                                                                        
       end///--//1318                                                                                                              
       if 0@ == 29                                                                                                     
       then 1@ = 91                                                                                                    
       else                                                                                                                        
       end///--//1343                                                                                                              
       if 0@ == 30                                                                                                     
       then 1@ = 90                                                                                                    
       else                                                                                                                        
       end///--//136E                                                                                                              
       if 0@ == 31                                                                                                     
       then 1@ = 88                                                                                                    
       else                                                                                                                        
       end///--//139A                                                                                                              
       if 0@ == 32                                                                                                     
       then 1@ = 138                                                                                                   
       else                                                                                                                        
       end///--//13C6                                                                                                              
       if 0@ == 33                                                                                                     
       then 1@ = 141                                                                                                   
       else                                                                                                                        
       end///--//13F21@                                                                                                
       if 0@ == 34                                                                                                     
       then 1@ = 150                                                                                                   
       else                                                                                                                        
       end///--//141D                                                                                                              
       if 0@ == 35                                                                                                     
       then 1@ = 92                                                                                                    
       else                                                                                                                        
       end///--//1449                                                                                                              
       if 0@ == 36                                                                                                     
       then 1@ = 151                                                                                                   
       else                                                                                                                        
       end///--//1475                                                                                                              
       if 0@ == 37                                                                                                     
       then 1@ = 198                                                                                                   
       else                                                                                                                        
       end///--//14Aa_angle                                                                                                        
       if 0@ == 38                                                                                                     
       then 1@ = 169                                                                                                   
       else                                                                                                                        
       end///--//14CD                                                                                                              
       if 0@ == 39                                                                                                     
       then 1@ = 201                                                                                                   
       else                                                                                                                        
       end///--//14F9                                                                                                              
       if 0@ == 40                                                                                                     
       then 1@ = 215                                                                                                   
       else                                                                                                                        
       end///--//1525                                                                                                              
       if 0@ == 41                                                                                                     
       then 1@ = 225                                                                                                   
       else                                                                                                                        
       end///--//1550                                                                                                              
       if 0@ == 42                                                                                                     
       then 1@ = 9                                                                                                     
       else                                                                                                                        
       end///--//157B                                                                                                              
       if 0@ == 43                                                                                                     
       then 1@ = 13                                                                                                    
       else                                                                                                                        
       end///--//15A6                                                                                                              
       if 0@ == 44                                                                                                     
       then 1@ = 76                                                                                                    
       else                                                                                                                        
       end///--//15D1                                                                                                              
       if 0@ == 45                                                                                                     
       then 1@ = 69                                                                                                    
       else                                                                                                                        
       end///--//15FD                                                                                                              
       if 0@ == 46                                                                                                     
       then 1@ = 190                                                                                                   
       else                                                                                                                        
       end///--//1628                                                                                                              
       if 0@ == 47                                                                                                     
       then 1@ = 53                                                                                                    
       else                                                                                                                        
       end///--//1653                                                                                                              
       if 0@ == 48                                                                                                     
       then 1@ = 55                                                                                                    
       else                                                                                                                        
       end///--//167F                                                                                                              
       if 0@ == 49                                                                                                     
       then 1@ = 194                                                                                                   
       else                                                                                                                        
       end///--//16AA                                                                                                              
       if 0@ == 50                                                                                                     
       then 1@ = 12                                                                                                    
       else                                                                                                                        
       end///--//16D5                                                                                                              
       if 0@ == 51                                                                                                     
       then 1@ = 38                                                                                                    
       else                                                                                                                        
       end///--//1700                                                                                                              
       if 0@ == 52                                                                                                     
       then 1@ = 41                                                                                                    
       else                                                                                                                        
       end                                                                                                                         
       if 0@ == 53                                                                                                     
       then 1@ = 231                                                                                                   
       else                                                                                                                        
       end                                                                                                                         
       if 0@ == 54                                                                                                     
       then 1@ = 191                                                                                                   
       else                                                                                                                        
       end
     return
     0000:

{:lget_model //(buf all girl models) 
hex
 3F 98 ED CF EE F5 F3 B2 57 F4 F6 10 8B 40 4B 10
 55 94 8C E9 E2 E0 DB D8 9D 83 5D 5B 5A 58 8A 8D
 96 5C 97 C6 A9 C9 D7 E1 09 0D 4C 45 BE 35 37 C2
 0C 26 29 E7
end

:xget_model //(buf all girl models) 
hex
 09 0A 0B 0C 0D 1F 26 27 28 29 35 36 37 38 3F 40
 45 4B 4C 4D 55 57 58 59 5A 5B 5C 5D 81 82 83 8A
 8B 8C 8D 91 94 96 97 98 99 A9 AC B2 BE BF C0 C1
 C2 C3 C4 C5 C6 C7 C9 CD CF D3 D6 D7 D8 DA DB E0
 E1 E2 E7 E8 E9 ED EE F3 F4 F5 F6 FB            
100 
101
107 
12A 
130
end}

   
:memory //(buf 81 * 4 byte 81 handlers)
hex
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
end
   
   
   
   
   
   